package com.ruoyi.electronicFence.domain;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TDeviceInfoModificationHistory {
    private static final long serialVersionUID = 1L;

    private Integer id; // 主键
    private String deviceId; // 设备id
    private String deviceType; // 设备类型
    private String deviceName; // 设备名称
    private String deviceIp; // 设备IP
    private String transportProtocol; // 数据传输协议
    private String parameterOfModification; // 修改的参数
    private String valueBeforeModification; // 修改前的值
    private String valueAfterModification; // 修改后的值
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeOfModification; // 修改的时间
    private String userOfModification; // 修改的用户

    public TDeviceInfoModificationHistory setId(Integer id) {
        this.id = id;
        return this;
    }

    public TDeviceInfoModificationHistory setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        return this;
    }

    public TDeviceInfoModificationHistory setDeviceType(String deviceType) {
        this.deviceType = deviceType;
        return this;
    }

    public TDeviceInfoModificationHistory setDeviceName(String deviceName) {
        this.deviceName = deviceName;
        return this;
    }

    public TDeviceInfoModificationHistory setDeviceIp(String deviceIp) {
        this.deviceIp = deviceIp;
        return this;
    }

    public TDeviceInfoModificationHistory setTransportProtocol(String transportProtocol) {
        this.transportProtocol = transportProtocol;
        return this;
    }

    public TDeviceInfoModificationHistory setParameterOfModification(String parameterOfModification) {
        this.parameterOfModification = parameterOfModification;
        return this;
    }

    public TDeviceInfoModificationHistory setValueBeforeModification(String valueBeforeModification) {
        this.valueBeforeModification = valueBeforeModification;
        return this;
    }

    public TDeviceInfoModificationHistory setValueAfterModification(String valueAfterModification) {
        this.valueAfterModification = valueAfterModification;
        return this;
    }

    public TDeviceInfoModificationHistory setTimeOfModification(LocalDateTime timeOfModification) {
        this.timeOfModification = timeOfModification;
        return this;
    }

    public TDeviceInfoModificationHistory setUserOfModification(String userOfModification) {
        this.userOfModification = userOfModification;
        return this;
    }
}